package com.service.integral.impl;

import com.bean.Integral_record;
import com.dao.Integral_recordMapper;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.service.core.AbstractService;
import com.service.integral.IntegralRecordService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * Created by Administrator on 2017/9/10.
 */
@Service
public class IntegralRecordServiceImpl extends AbstractService<Integral_record, Integer> implements IntegralRecordService {
    Logger logger = Logger.getLogger(IntegralRecordServiceImpl.class);

    @Autowired
    private Integral_recordMapper integral_recordMapper;

    @Override
    public Page findRecordByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap) {
        PageHelper.startPage(pageNum,pageSize);
        Page page = (Page) integral_recordMapper.findRecordPage(paraMap);
        return page;
    }
}